<!DOCTYPE html PUBLICModel "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title>Document</title>
	<css file="__PUBLIC__/Css/style.css"/>
</head>
<body>
<section class="widget" style="min-height:300px">
		<header>
			<span class="icon"></span>
			<hgroup>
				<h1>分类列表</h1>
				<h2><a href="{:U(GROUP_NAME.'/Category/cate')}" target="iframe">添加一个新的分类</a></h2>
			</hgroup>
		</header>
		<form action="{:U(GROUP_NAME.'/Category/sortCate')}" method='post'>
		<table id="myTable" border="0" width="100">
					<thead>
						<tr>
							<th class="header" >ID</th>
							<th class="header">名称</th>
							<th class="header">级别</th>
							<th class="header">排序</th>
							<th class="header">操作</th>
						</tr>
					</thead>
					<tbody>
					<foreach name="cate" item="v">
						<tr class="odd">
							<td style="padding-left:50px;">{$v.id}</td>
							<td>{$v.html}{$v.name}</td>
							<td>{$v.level}</td>
							<td><input style="color:#999" type="text" value="{$v.sort}" name="{$v.id}"/></td>
							<td>[<a href="{:U(GROUP_NAME.'/Category/DelCate',array('id'=>$v['id']))}">删除</a>][<a href="{:U(GROUP_NAME.'/Category/cate',array('pid'=>$v['id']))}">添加子分类</a>]</td>
						</tr>
						</foreach>
					</tbody>
			</table>
			<button type="submit" class="green" style="margin:20px;" >提交排序</button>
		</form>
	</section>

</body>
</html>